package com.gc.server.service;

import com.gc.server.entity.AdviseEntity;
import com.gc.server.vo.AdviseVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 建议Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Oct 22 09:25:43 CST 2020
 */
public interface AdviseService extends BaseService<AdviseEntity> {

    /************自动生成**************/
    List<AdviseVo> findVo(AdviseVo vo);

        AdviseVo getVo(Long id);

     int updateVo(AdviseVo vo);

       int saveVo(AdviseVo vo);

    void downLoad(HttpServletResponse response, List<AdviseVo> list);

    /***********BACK***********/




    /***********API***********/

    AdviseEntity apply(Long userId,String title,String content,String img);

    List<AdviseVo> findByUserId(Long userId);

}
